#include <lvgl.h>
#include <Preferences.h>
#include "../../common.h"
#include "ESP32FtpServer.h"
#include <WiFi.h>

extern const lv_img_dsc_t server_icon;

class HoloServer
{
  private:
  
  Event event;
  lv_obj_t *label_scr, *label_ip, *label_sym, *label_ssid, *label_user_name, *label_pw;
  lv_style_t font_style;
  int timecal;
  bool is_connected;
  String ssid, ip;
  Preferences save_cfg;

  FtpServer server;

  void init_gui();
  void show_msg(String, String, String, String, String);
  
  public:
  HoloServer();
  ~HoloServer();
  Event main_process(Action);
};
